package config

type EmailConfig struct {
	Host              string `yaml:"host"`
	Port              int    `yaml:"port"`
	User              string `yaml:"user"`
	AuthorizationCode string `yaml:"authorizationCode"`
}

func (e *EmailConfig) Verify() bool {
	if e.Host == "" || e.Port == 0 || e.User == "" || e.AuthorizationCode == "" {
		return false
	}
	return true
}
